﻿<!--
 * Almathy Center - MainWindow.xaml
 * Copyright (C) 2011 Christophe LEMOINE
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->
    <Window x:Class="AlmathyCenter.MainWindow" x:Name="window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:prop="clr-namespace:AlmathyCenter.Properties"
        xmlns:extToolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit.Extended"
        Title="Almathy Center" Height="768" Width="1024" Icon="/AlmathyCenter;component/Images/icon.ico" Closing="window_Closing">
    <Window.TaskbarItemInfo>
        <TaskbarItemInfo x:Name="TaskbarOverlay" Overlay="/AlmathyCenter;component/Images/icon.ico" />
    </Window.TaskbarItemInfo>
    <DockPanel RenderOptions.BitmapScalingMode="HighQuality" Name="DockPan">
        <Menu Height="23" Name="menu1" VerticalAlignment="Top" Background="#FF293955" DockPanel.Dock="Top">
            <MenuItem Header="Application" Foreground="White" />
            <MenuItem Foreground="White" Header="?">
                <MenuItem Header="A propos de..." Foreground="Black" Click="AboutClicked" />
                <MenuItem Header="Licence..." Foreground="Black" Click="LicenceClicked">
                    <MenuItem.Icon>
                        <Image Source="/AlmathyCenter;component/Images/licence.ico" Width="14" Height="14" />
                    </MenuItem.Icon>
                </MenuItem>
            </MenuItem>
        </Menu>
        <Grid IsEnabled="True" Name="statusBar1" VerticalAlignment="Bottom" Background="#FF293955" DockPanel.Dock="Bottom">
            <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10">
                <ComboBox Name="StatusBox" FontSize="10" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Width="100" SelectionChanged="PresenceChanged" IsReadOnly="False" Padding="0" AlternationCount="1" BorderThickness="0" IsTextSearchEnabled="False">
                    <ComboBox.ToolTip><ToolTip Content="Etats"></ToolTip></ComboBox.ToolTip>
                    <ComboBox.Items>
                        <ComboBoxItem IsSelected="True">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Image Source="/AlmathyCenter;component/Resources/bullet_green.png" VerticalAlignment="Center" />
                                    <Label Content="Disponible" FontSize="10" VerticalAlignment="Center" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Image Source="/AlmathyCenter;component/Resources/bullet_orange.png" VerticalAlignment="Center" />
                                    <Label Content="Absent" FontSize="10" VerticalAlignment="Center" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Image Source="/AlmathyCenter;component/Resources/bullet_red.png" VerticalAlignment="Center" />
                                    <Label Content="Occupé" FontSize="10" VerticalAlignment="Center" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Image Source="/AlmathyCenter;component/Resources/bullet_black.png" VerticalAlignment="Center" />
                                    <Label Content="Invisible" FontSize="10" VerticalAlignment="Center" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                    </ComboBox.Items>
                </ComboBox>
                <Grid Width="8" />
                <ComboBox Name="ActivityBox" FontSize="10" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Width="110" SelectionChanged="ActivityChanged" IsReadOnly="False" Padding="0" AlternationCount="1" BorderThickness="0" IsTextSearchEnabled="False">
                    <ComboBox.ToolTip><ToolTip Content="Activités"></ToolTip></ComboBox.ToolTip>
                    <ComboBox.Items>
                        <ComboBoxItem IsSelected="True">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Label Content="Aucune activité" FontSize="10" VerticalAlignment="Center" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Image Source="/AlmathyCenter;component/Resources/bullet_orange.png" VerticalAlignment="Center" />
                                    <Label Content="En voyage" FontSize="10" VerticalAlignment="Center" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Image Source="/AlmathyCenter;component/Resources/bullet_orange.png" VerticalAlignment="Center" />
                                    <Label Content="En vacance" FontSize="10" VerticalAlignment="Center" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Image Source="/AlmathyCenter;component/Resources/bullet_orange.png" VerticalAlignment="Center" />
                                    <Label Content="En déjeuner" FontSize="10" VerticalAlignment="Center" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Image Source="/AlmathyCenter;component/Resources/bullet_orange.png" VerticalAlignment="Center" />
                                    <Label Content="Au lit" FontSize="10" VerticalAlignment="Center" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Image Source="/AlmathyCenter;component/Resources/bullet_red.png" VerticalAlignment="Center" />
                                    <Label Content="En rendez-vous" FontSize="10" VerticalAlignment="Center" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Image Source="/AlmathyCenter;component/Resources/bullet_red.png" VerticalAlignment="Center" />
                                    <Label Content="En réunion" FontSize="10" VerticalAlignment="Center" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Image Source="/AlmathyCenter;component/Resources/bullet_red.png" VerticalAlignment="Center" />
                                    <Label Content="Au téléphone" FontSize="10" VerticalAlignment="Center" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                    </ComboBox.Items>
                </ComboBox>
                <Grid Width="8" />
                <ComboBox Name="MoodBox" FontSize="10" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Width="120" SelectionChanged="MoodChanged" IsReadOnly="False" Padding="0" AlternationCount="1" BorderThickness="0" IsTextSearchEnabled="False">
                    <ComboBox.ToolTip>
                        <ToolTip Content="Humeurs"></ToolTip>
                    </ComboBox.ToolTip>
                    <ComboBox.Items>
                        <ComboBoxItem IsSelected="True">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Label Content="Aucune humeur" FontSize="10" VerticalAlignment="Center" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Grid Width="4" />
                                    <Image Source="/AlmathyCenter;component/Resources/emoticon_happy.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
                                    <Grid Width="4" />
                                    <Label Content="Heureux" FontSize="10" VerticalAlignment="Center" />
                                    <Grid Width="4" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Grid Width="4" />
                                    <Image Source="/AlmathyCenter;component/Resources/emoticon_smile.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
                                    <Grid Width="4" />
                                    <Label Content="Souriant" FontSize="10" VerticalAlignment="Center" />
                                    <Grid Width="4" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Grid Width="4" />
                                    <Image Source="/AlmathyCenter;component/Resources/emoticon_tongue.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
                                    <Grid Width="4" />
                                    <Label Content="Tire la langue" FontSize="10" VerticalAlignment="Center" />
                                    <Grid Width="4" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Grid Width="4" />
                                    <Image Source="/AlmathyCenter;component/Resources/emoticon_wink.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
                                    <Grid Width="4" />
                                    <Label Content="Clin d'oeil" FontSize="10" VerticalAlignment="Center" />
                                    <Grid Width="4" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Grid Width="4" />
                                    <Image Source="/AlmathyCenter;component/Resources/emoticon_waii.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
                                    <Grid Width="4" />
                                    <Label Content="Joyeux" FontSize="10" VerticalAlignment="Center" />
                                    <Grid Width="4" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Grid Width="4" />
                                    <Image Source="/AlmathyCenter;component/Resources/emoticon_surprised.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
                                    <Grid Width="4" />
                                    <Label Content="Surpris" FontSize="10" VerticalAlignment="Center" />
                                    <Grid Width="4" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Grid Width="4" />
                                    <Image Source="/AlmathyCenter;component/Resources/emoticon_unhappy.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
                                    <Grid Width="4" />
                                    <Label Content="Pas content" FontSize="10" VerticalAlignment="Center" />
                                    <Grid Width="4" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Grid Width="4" />
                                    <Image Source="/AlmathyCenter;component/Resources/emoticon_grin.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
                                    <Grid Width="4" />
                                    <Label Content="Grincheux" FontSize="10" VerticalAlignment="Center" />
                                    <Grid Width="4" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                        <ComboBoxItem IsSelected="False">
                            <ComboBoxItem.Content>
                                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch">
                                    <Grid Width="4" />
                                    <Image Source="/AlmathyCenter;component/Resources/emoticon_evilgrin.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
                                    <Grid Width="4" />
                                    <Label Content="En colère" FontSize="10" VerticalAlignment="Center" />
                                    <Grid Width="4" />
                                </StackPanel>
                            </ComboBoxItem.Content>
                        </ComboBoxItem>
                    </ComboBox.Items>
                </ComboBox>
                <Grid Width="16" />
                <TextBox Name="StatusMessage" IsReadOnly="True" Width="350" VerticalContentAlignment="Center" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="White" FontSize="10" IsReadOnlyCaretVisible="False" Cursor="Hand" BorderThickness="0" MouseDoubleClick="StatusMessage_MouseDoubleClick" KeyUp="StatusMessage_KeyUp" LostFocus="StatusMessage_LostFocus" MaxLength="100" ToolTip="Double-Cliquez pour éditer votre message de statut." />
            </StackPanel>
            <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="10">
                <Grid Width="16" />
                <Image x:Name="VcardIcon" Source="/AlmathyCenter;component/Images/vcard1.png" Width="16" Height="16" Cursor="Hand" ToolTip="Voir / Modifier ma carte de visite..." MouseUp="VcardIcon_MouseUp" />
                <Grid Width="16" />
                <Image x:Name="StatusIcon" Source="pack://application:,,,/Resources/status_offline.png" Width="16" Height="16" ToolTip="Etat de ma connexion aux vues de mes contacts." />
                
            </StackPanel>
            
        </Grid>
        <Grid HorizontalAlignment="Stretch" Name="grid1" VerticalAlignment="Stretch" Background="#FFCED4DF">
            <Grid.Effect>
                <DropShadowEffect Direction="270" Opacity="0.3" />
            </Grid.Effect>
            <extToolkit:BusyIndicator IsBusy="False" x:Name="busyIndicator1" />
            
            
            
            
            
            
            
        </Grid>
    </DockPanel>
</Window>
